package mylab.commons.web.mvc.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public abstract class BaseTreeDTO<T> extends BaseEntityDTO {
    private String parentId;
    private T parent;

    private List<String> childrenIds;
    private List<T> children;
}
